import Vue from "vue";
import HomeView from "../views/HomeView"
import VueRouter from "vue-router"
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component:HomeView,
    children:[
      {path:'/home/meage',component:()=>import("../views/home/MeAge"),meta:["首页"]},
      {path:'/home/foods',component:()=>import("../views/home/foods"),meta:["美食"]},
      {path:'/home/kitchen',component:()=>import("../views/home/kitchen"),meta:["厨房"]}
    ]
  }
];

const router = new VueRouter({
  routes,
});

export default router;
